﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HAVTKPack
{

    [Serializable ]
   public  class SaveScreenSetup
    {
        public SaveScreenSetup(SaveScreenType imageType, string imageSavePath)
        {
            this._imageType = imageType;

            this._imageSavePath = imageSavePath;
        
        
        }
        public SaveScreenSetup(SaveScreenType imageType, string imageSavePath,int resolution)
        {
            this._imageType = imageType;

            this._imageSavePath = imageSavePath;

            this._resolution = resolution;


        }

        SaveScreenType _imageType = SaveScreenType.BMP;
        /// <summary>
        /// 保存图片类型
        /// </summary>
        public SaveScreenType ImageType
        {
            get { return this._imageType; }
            //set { this._imageType = value; }
        }


        int _resolution = 1;
        /// <summary>
        /// 缩放倍数
        /// </summary>
        public int Resolution
        {
            get { return _resolution; }
            set { _resolution = value; }
        }




        int _resolutionWidth = 1024;
        /// <summary>
        /// X方向像素
        /// </summary>
        public int ResolutionWidth
        {
            get { return _resolutionWidth; }
            //set { _resolutionWidth = value; }
        }


        int _resolutionHeight=768;
        /// <summary>
        /// Y方向像素
        /// </summary>
        public int ResolutionHeight
        {
            get { return this._resolutionHeight; }
            //set { this._resolutionHeight = value; }
        }


        int _imageQuality=100;
        /// <summary>
        /// 图片透明度
        /// </summary>
        public int ImageQuality
        {
            get { return this._imageQuality; }
            //set { this._imageQuality = value; }
        }



        string _imageSavePath="C:\\Documents and Settings\\Administrator\\桌面\\新建文件夹 (2)\\testImage.bmp";
        /// <summary>
        /// 保存图片的路径
        /// </summary>
        public string ImageSavePath
        {

            get { return this._imageSavePath; }
            //set { this._imageSavePath = value; }
        
        }




        public void UpdateSaveScreenSetup(SaveScreenSetup setup)
        {
            if (setup ==null)
            {
                return;
               
            }

            this._imageType = setup._imageType;

            this._resolutionWidth = setup._resolutionWidth;

            this._resolutionHeight = setup._resolutionWidth;

            this._imageQuality = setup._imageQuality;

        
        }







    }
}
